<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <base href="<%=basePath%>">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<%@ include file="/common/importJsCss.jsp" %>
    <script type="text/javascript" id="preJavascript">
$(function(){
	var app = Davis(function () {
  		this.get('/welcome/:name', function (req) {
    		$('body').append('<h3>欢迎, ' + req.params['name'] + '!</h3>')
  		})
  		this.get('#/save', function (req) {
    		$('body').append('<h3>这是save!</h3>')
  		})
	});
 	app.start();
});
    </script>
  </head>
  <body>
    <div class="container">
        <div class="page-header">
            <h2>示例</h2>
        </div>
<pre class="prettyprint linenums"></pre>
    <a class="btn" href="/welcome/黄金林">/welcome/黄金林</a>
	<a class="btn" href="#/save">#/save</a>
	<a class="btn" href="index.jsp">直接跳转index.jsp</a>
    </div> 
  </body>
</html>
